import matplotlib.pyplot as plt


# from matplotlib.font_manager import FontProperties


# 画折线图
def line_chart(x, y):
    plt.plot(x, y)
    plt.rcParams['font.sans-serif'] = ['SimHei']
    # 添加标题和标签
    plt.title("折线图示例")
    plt.xlabel("X 轴")
    plt.ylabel("Y 轴")
    plt.xticks(x)
    # plt.yticks(y)

    # 显示图表
    plt.show()
